//
//  ViewController.m
//  Erc_Day01_homework_01
//
//  Created by aaaaaa on 16/6/2.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "ViewController.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    UIView *view1 = [[UIView alloc] initWithFrame:CGRectMake(100, 100, 100, 100)];
    view1.backgroundColor = [UIColor redColor];
    [self.view addSubview:view1];
    
    UIView *view2 = [[UIView alloc] initWithFrame:CGRectMake(100, 200, 100, 100)];
    view2.backgroundColor = [UIColor yellowColor];
    [self.view addSubview:view2];
    
    UIView *view3 = [[UIView alloc] initWithFrame:CGRectMake(100, 300, 100, 100)];
    view3.backgroundColor = [UIColor greenColor];
    [self.view addSubview:view3];
    
    UIView *view4 = [[UIView alloc] initWithFrame:CGRectMake(100, 400, 100, 100)];
    view4.backgroundColor = [UIColor blueColor];
    [self.view addSubview:view4];
    
    UIView *view5 = [[UIView alloc] initWithFrame:CGRectMake(100, 500, 100, 100)];
    view5.backgroundColor = [UIColor grayColor];
    [self.view addSubview:view5];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
